package org.wlw.servlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/admin/user")
public class UserServlet extends BaseServlet{

    public String index(HttpServletRequest req, HttpServletResponse resp) {
        System.out.println("index");
        return "/user/list";
    }

    public String add(HttpServletRequest req,HttpServletResponse resp) {
        System.out.println("add");
        return super.getRedirectUrl("/admin/user");
    }
}
